package com.xbongbong.schedule.feign;

import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import com.xbongbong.schedule.pojo.dto.ScheduleTaskActionDTO;
import com.xbongbong.schedule.pojo.vo.ScheduleTaskActionVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 工单v2延时任务执行 feign调用
 * @author zheng.li
 **/
@FeignClient(value = "xbb-work-order-web", contextId = "workOrderV2TaskFeignClient")
public interface WorkOrderV2TaskActionFeign {

    @RequestMapping(value = "/pro/v1/workOrderV2/schedule/task/action", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<ScheduleTaskActionVO> scheduleTaskAction(@RequestBody ScheduleTaskActionDTO scheduleTaskActionDTO, @RequestParam("lang") String lang);


}
